home *** CD-ROM | disk | FTP | other *** search
- unit FMemo;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- CGIEng, CGIUtl;
-
- type
- TForm1 = class(TForm)
- CGIEngine1: TCGIEngine;
- CGIMemo1: TCGIMemo;
- procedure CGIMemo1CGIEntry(EntryName: string);
- procedure CGIEngine1CGIRequest(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.CGIMemo1CGIEntry(EntryName: string);
- begin
- if AnsiUpperCase(EntryName)='TIME' then
- CGIEngine1.Put(TimeToStr(Now))
- else if AnsiUpperCase(EntryName)='TEST' then
- CGIEngine1.Put('This is the second entry in this document.');
- end;
-
- procedure TForm1.CGIEngine1CGIRequest(Sender: TObject);
- begin
- CGIMemo1.Put;
-
- end;
-
- end.
-